package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.WxSendFile;
import com.tyqx.hashchainbiz.service.WxSendFileService;
import com.tyqx.hashchaindao.mapper.WxSendFileMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: hashchain-spring
 * @description:
 * @author: Mr.Li
 * @create: 2020-10-30 21:19
 **/
@Service("wxSendFileService")
public class WxSendFileServiceImpl implements WxSendFileService {

    @Resource
    private WxSendFileMapper wxSendFileMapper;

    @Override
    public int insertWxSendFile(WxSendFile wxSendFile) {
        return wxSendFileMapper.insertWxSendFile(wxSendFile);
    }

    @Override
    public List<WxSendFile> queryWxSendFileByUserOpenId(String openId) {
        return wxSendFileMapper.queryWxSendFileByUserOpenId(openId);
    }

    @Override
    public List<WxSendFile> queryWxSendFileByCompanyId(String[] companyId) {
        return wxSendFileMapper.queryWxSendFileByCompanyId(companyId);
    }
}
